package com.netease.nie.dao;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.netease.nie.mapper.DrawLotteryPrizeTimeLineMapper;
import com.netease.nie.model.DrawLotteryPrizeTimeLine;

/**
 * 抽奖普通商品时间线数据操作
 * @author gzlibingjie
 */
@Repository
public class DrawLotteryPrizeTimeLineDao {
	
	@Resource
	private DrawLotteryPrizeTimeLineMapper drawLotteryPrizeTimeLineMapper;
	
	public DrawLotteryPrizeTimeLine queryLast(Integer activityId) {
		return drawLotteryPrizeTimeLineMapper.queryLast(activityId);
	}
	
	public DrawLotteryPrizeTimeLine queryById(Integer id) {
		return drawLotteryPrizeTimeLineMapper.queryById(id);
	}
	
	public int addPt(Integer id) {
		return drawLotteryPrizeTimeLineMapper.addPt(id);
	}
	
	public int subtractStock(Integer id) {
		return drawLotteryPrizeTimeLineMapper.subtractStock(id);
	}

}
